<!--  -->
<template>
  <div class="profile">
    <!-- 头部 -->
    <NavBar class="home_navbar">
      <div slot="center">个人中心</div>
    </NavBar>

    <div class="login_form">
      <div class="user_cover">
        <img src="@/assets/img/cover.jpg" alt="" />
      </div>
      <div class="user_name">杨小卿玖</div>
    </div>

    <div class="shop_wrap">
      <div class="header">
        <div class="item">
          <i class="iconfont icon-shoucang1"></i>
          <span>商品收藏0</span>
        </div>
        <div class="item">
          <i class="iconfont icon-dianpu"></i>
          <span>店铺关注3</span>
        </div>
        <div class="item">
          <i class="iconfont icon-liulanjilu"></i>
          <span>浏览记录100</span>
        </div>
      </div>
      <div class="footer">
        <div class="item">
          <div class="iconfont icon-daifukuan"></div>
          <div class="title">待付款</div>
        </div>
        <div class="item">
          <div class="iconfont icon-daishouhuo"></div>
          <div class="title">待收货</div>
        </div>
        <div class="item">
          <div class="iconfont icon-daipingjia"></div>
          <div class="title">待评价</div>
        </div>
        <div class="item">
          <div class="iconfont icon-tuikuan"></div>
          <div class="title">退换/售后</div>
        </div>
        <div class="item">
          <div class="iconfont icon-xiangmujianjie"></div>
          <div class="title">我的订单</div>
        </div>
      </div>
    </div>

    <div class="other">
      <van-field
        v-model="message"
        rows="1"
        autosize
        label="留言"
        type="textarea"
        placeholder="请输入留言"
      />
      <van-uploader v-model="fileList" :max-count="3" multiple />
    </div>
  </div>
</template>

<script>
import NavBar from "@/components/common/navBar/NavBar.vue";

export default {
  name: "Profile",
  components: {
    NavBar,
  },
  data() {
    return {
      message:"",
      fileList: [
        { url: "https://img01.yzcdn.cn/vant/leaf.jpg" },
        // Uploader 根据文件后缀来判断是否为图片文件
        // 如果图片 URL 中不包含类型信息，可以添加 isImage 标记来声明
      ],
    };
  },
  methods: {},
};
</script>

<style scoped lang='less'>
.profile {
  padding: 0 8px;
  background-color: #f1f1f1;
  height: calc(100vh - 44px);
}
.home_navbar {
  background-color: #eb4450;
  color: #fff;
  font-weight: 600;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
}
.login_form {
  padding: 10px 0;
  margin-top: 44px;
  text-align: center;
  .user_cover {
    margin: 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  }
  .user_name {
    margin-top: 8px;
    font-weight: 600;
    color: #333;
  }
}
.shop_wrap {
  background-color: #fff;
  border-radius: 15px;
  .header {
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 14px 5px;
    .item {
      i {
        font-size: 16px;
        font-weight: 600;
      }
      span {
        font-size: 15px;
      }
    }
  }
  .footer {
    display: flex;
    padding: 20px 5px;
    justify-content: space-around;
    .item {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      .iconfont {
        font-size: 26px;
        font-weight: 600;
      }
      .title {
        font-size: 13px;
        margin-top: 5px;
      }
    }
  }
}

.other {
  margin-top: 10px;
  height: 250px;
  background-color: #fff;
  border-radius: 15px;
  .van-field{
    height: 60%;
    overflow-y: scroll;
  }
  .van-uploader{
    margin-left: 10px;
  }
}
</style>